package com.project.bean;

/**
 * 订单实体类
 */
public class OrderBean {
    /**
     * 订单编号
     */
    private Integer orderId;
    /**
     * 收货人
     */
    private String receiver;
    /**
     * 收货地址
     */
    private String addr;
    /**
     * 订单明细
     */
    private OrderDetailBean orderDetail;

    public OrderBean() {
    }

    public OrderBean(String receiver, String addr) {
        this.receiver = receiver;
        this.addr = addr;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public OrderDetailBean getOrderDetail() {
        return orderDetail;
    }

    public void setOrderDetail(OrderDetailBean orderDetail) {
        this.orderDetail = orderDetail;
    }

    @Override
    public String toString() {
        return "OrderBean{" +
                "orderId=" + orderId +
                ", receiver='" + receiver + '\'' +
                ", addr='" + addr + '\'' +
                ", orderDetail=" + orderDetail +
                "}\n";
    }
}
